import hzcRequest from "../../../utils/https";

// 查询全部商品分类
// const getHomePage = (data) => {
//    return hzcRequest.post(`/h5Shop/api/ln/getHomePage`,data)
// };

// 活动配置

const getConfig = (data) => {
	return hzcRequest.post(`/getConfigOther`, data)
}

// 活动列表
const getActivityPage = (data) => {
	return hzcRequest.post(`/getActivityPageOther`, data)
}
// 历史记录
const getHistoryPage = (data) => {
	return hzcRequest.post(`/getHistoryPageOther`, data)
}
//活动详情
const getActivityDetails = (data) => {
	return hzcRequest.post(`/getActivityDetailsOther`, data)
}

// getJumpshopUrl 获取跳转商城链接
const getJumpShopUrl = (data) => {
	return hzcRequest.post(`/getJumpShopUrlOther`, data)
}

// beginActivity
//进入活动
const beginActivity = (data) => {
	return hzcRequest.post(`/beginActivityOther`, data)
}

//完成活动
const finishActivity = (data) => {
	return hzcRequest.post(`/finishActivityOther`, data)
}

//10.小程序获取SessionKey
const getSessionKey = (data) => {
	return hzcRequest.post(`/getSessionKeyOther`, data)
}

//11.小程序解析微信步数
const grantWxStep = (data) => {
	return hzcRequest.post(`/grantWxStepOther`, data)
}


//完成活动
const punchActivity = (data) => {
	return hzcRequest.post(`/punchActivityOther`, data)
}


//完成活动
const signActivity = (data) => {
	return hzcRequest.post(`/signActivityOther`, data)
}
//完成活动{}


const punchAction = (data) => {
	return hzcRequest.post(`/punchActionOther`, data)
}


//提交答案(做题类)
const submitAnswer = (data) => {
	return hzcRequest.post(`/submitAnswerOther`, data)
}

const getUserInfo = (data) => {
	return hzcRequest.post(`/getUserInfoOther`, data)
}

const updateUserInfo = (data) => {
	return hzcRequest.post(`/updateUserInfoOther`, data)
}

const getJumpShopOrderUrl = (data) => {
	return hzcRequest.post(`/getJumpShopOrderUrlOther`, data)
}



export {
	updateUserInfo,
	punchAction,
	getConfig,
	getActivityPage,
	getHistoryPage,
	beginActivity,
	getActivityDetails,
	finishActivity,
	getSessionKey,
	grantWxStep,
	punchActivity,
	signActivity,
	submitAnswer,
	getJumpShopUrl,
	getJumpShopOrderUrl,
	getUserInfo
};